/*var http = require('http');

var url = "http://www.imooc.com/video/7965";
http.get (url,function(res){
   var html = "";
   res.on('data',function(data){
   	  html += data;
   });

   res.on('end',function(){
   	  console.log(html);
   })

   res.on('error',function(){
   	  console.log("error");
   })
})*/

function fillhtml(html){

}
var http = require('http');
var cheerio = require('cheerio');

var url = "http://www.imooc.com/video/7965";

http.get (url,function(res){
   var html = "";
   res.on('data',function(data){
   	  html += data;
   });

   res.on('end',function(){
   	   fillhtml(html);
   })

   res.on('error',function(){
   	  console.log("error");
   })
})